home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Interfaces / UniversalInterfaces 2.0 / CIncludes / ColorPickerComponents.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-18  |  3.6 KB  |  123 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ColorPickerComponents.h
  3.  
  4.      Contains:    Color Picker Component Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.0 in “MPW Latest” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __COLORPICKERCOMPONENTS__
  21. #define __COLORPICKERCOMPONENTS__
  22.  
  23.  
  24. #ifndef __COLORPICKER__
  25. #include <ColorPicker.h>
  26. #endif
  27. /*    #include <Quickdraw.h>                                        */
  28. /*        #include <Types.h>                                        */
  29. /*            #include <ConditionalMacros.h>                        */
  30. /*        #include <MixedMode.h>                                    */
  31. /*        #include <QuickdrawText.h>                                */
  32. /*    #include <Windows.h>                                        */
  33. /*        #include <Memory.h>                                        */
  34. /*        #include <Events.h>                                        */
  35. /*            #include <OSUtils.h>                                */
  36. /*        #include <Controls.h>                                    */
  37. /*            #include <Menus.h>                                    */
  38. /*    #include <Dialogs.h>                                        */
  39. /*        #include <Errors.h>                                        */
  40. /*        #include <TextEdit.h>                                    */
  41. /*    #include <CMApplication.h>                                    */
  42. /*        #include <Printing.h>                                    */
  43. /*    #include <Balloons.h>                                        */
  44.  
  45. #ifndef __COMPONENTS__
  46. #include <Components.h>
  47. #endif
  48.  
  49. #ifdef __cplusplus
  50. extern "C" {
  51. #endif
  52.  
  53. #if PRAGMA_ALIGN_SUPPORTED
  54. #pragma options align=mac68k
  55. #endif
  56.  
  57. #if PRAGMA_IMPORT_SUPPORTED
  58. #pragma import on
  59. #endif
  60.  
  61.  
  62. enum {
  63.     kPickerComponentType        = 'cpkr'
  64. };
  65.  
  66. enum PickerMessages {
  67.     kInitPicker,
  68.     kTestGraphicsWorld,
  69.     kGetDialog,
  70.     kGetItemList,
  71.     kGetColor,
  72.     kSetColor,
  73.     kEvent,
  74.     kEdit,
  75.     kSetVisibility,
  76.     kDrawPicker,
  77.     kItemHit,
  78.     kSetBaseItem,
  79.     kGetProfile,
  80.     kSetProfile,
  81.     kGetPrompt,
  82.     kSetPrompt,
  83.     kGetIconData,
  84.     kGetEditMenuState,
  85.     kSetOrigin,
  86.     kExtractHelpItem
  87. };
  88.  
  89. extern pascal long InitPicker(ComponentInstance thePicker, PickerInitData *data);
  90. extern pascal DialogPtr GetDialog(ComponentInstance thePicker);
  91. extern pascal long TestGraphicsWorld(ComponentInstance thePicker, PickerInitData *data);
  92. extern pascal long GetTheColor(ComponentInstance thePicker, ColorType whichColor, PMColorPtr color);
  93. extern pascal long SetTheColor(ComponentInstance thePicker, ColorType whichColor, PMColorPtr color);
  94. extern pascal long DoEvent(ComponentInstance thePicker, EventData *data);
  95. extern pascal long DoEdit(ComponentInstance thePicker, EditData *data);
  96. extern pascal long SetVisibility(ComponentInstance thePicker, Boolean visible);
  97. extern pascal long DisplayPicker(ComponentInstance thePicker);
  98. extern pascal long ItemHit(ComponentInstance thePicker, ItemHitData *data);
  99. extern pascal long GetItemList(ComponentInstance thePicker);
  100. extern pascal long SetBaseItem(ComponentInstance thePicker, short baseItem);
  101. extern pascal CMProfileHandle GetTheProfile(ComponentInstance thePicker);
  102. extern pascal long SetTheProfile(ComponentInstance thePicker, CMProfileHandle profile);
  103. extern pascal long GetPrompt(ComponentInstance thePicker, Str255 prompt);
  104. extern pascal long SetPrompt(ComponentInstance thePicker, Str255 prompt);
  105. extern pascal long GetIconData(ComponentInstance thePicker, PickerIconData *data);
  106. extern pascal long GetEditMenuState(ComponentInstance thePicker, PickerMenuState *mState);
  107. extern pascal long SetTheOrigin(ComponentInstance thePicker, Point where);
  108. extern pascal long ExtractHelpItem(ComponentInstance thePicker, short itemNo, short whichMsg, HelpItemInfo *helpInfo);
  109.  
  110. #if PRAGMA_IMPORT_SUPPORTED
  111. #pragma import off
  112. #endif
  113.  
  114. #if PRAGMA_ALIGN_SUPPORTED
  115. #pragma options align=reset
  116. #endif
  117.  
  118. #ifdef __cplusplus
  119. }
  120. #endif
  121.  
  122. #endif /* __COLORPICKERCOMPONENTS__ */
  123.